package com.pig4cloud.pig.module.api.entity.wmj;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 微门禁 门禁卡对象 wmj_id_card
 *
 * @author ruoyi
 * @date 2022-12-08
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("wmj_id_card")
public class WmjIdCard implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 所属物业id
     */
    private Integer propertyId;

    /**
     * 所属小区id
     */
    private Integer estateId;

    /**
     * 门禁id
     */
    private Integer doorId;

    /**
     * 门禁卡编号
     */
    private String idCardNo;

    /**
     * 状态 0 - 未绑定 1 - 已绑定激活 2 - 已失效
     */
    private Integer state;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 过期时间
     */
    private Date expireTime;

    /**
     * 绑定的用户id
     */
    private Integer userId;

    /**
     *  手机号
     */
    private String phoneNum;
    /**
     *  房间号
     */
    private String roomNo;


    @TableField(exist = false)
	private String nickName;


	@TableField(exist = false)
	private String faceUrl;

	@TableField(exist = false)
	private String propertyName;


	@TableField(exist = false)
	private String estateName;

	@TableField(exist = false)
	private String doorName;


}
